package com.example.shiro.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @ Author     ：jujh
 * @ Date       ：Created in 10:53 2018/10/30
 * @ Description：页面跳转
 */
@Controller
public class JumpController {

    @RequestMapping(value = "/goIndex")
    public String index() {
        System.out.println("页面进行跳转");
        return "index";
    }

    @RequestMapping(value = "/user/getMessage", method = RequestMethod.GET)
    @ResponseBody
    public String getUserMessage() {
        return "您拥有用户权限，可以获得该接口的信息";
    }
}
